<?php

use App\Http\Controllers\Api\ActivityController;
use App\Http\Controllers\Api\BannerController;
use App\Http\Controllers\Api\CommonController;
use App\Http\Controllers\Api\OrderController;
use App\Http\Controllers\Api\TravelAddressController;
use App\Http\Controllers\Api\UserUrgentController;
use App\Http\Controllers\Villager\UserController;
use Illuminate\Support\Facades\Route;

//保存用户信息
Route::post('save/user/info', [UserController::class, 'updateUserInfo']);
//获取用户信息
Route::get('get/user/info', [UserController::class, 'getUserInfo']);
//首页-轮播图
Route::get('index/banner/list', [BannerController::class, 'getBannerList']);
//活动列表
Route::get('activity/list', [ActivityController::class, 'getActivityList']);
//参与的活动列表
Route::get('activity/join/list', [ActivityController::class, 'getActivityJoinList']);
//我的-订单列表
Route::get('my/order/list', [OrderController::class, 'getMyOrderList']);
//活动详情
Route::get('activity', [ActivityController::class, 'getActivity']);
//活动报名列表
Route::get('activity/application', [ActivityController::class, 'getActivityApplicationList']);
//活动报名
Route::post('activity/application', [ActivityController::class, 'activityApplication']);
//创建订单
Route::post('add/order', [OrderController::class, 'addOrder']);
//修改订单
Route::post('update/order', [OrderController::class, 'updateOrder']);
//查询预扣费是否足够
Route::get('check/order', [OrderController::class, 'checkOrder']);
//常用地址
Route::get('get/travel/address', [TravelAddressController::class, 'getTravelAddress']);
//添加常用地址
Route::post('add/travel/address', [TravelAddressController::class, 'addTravelAddress']);
//评价订单
Route::post('appraise/order', [OrderController::class, 'appraiseOrder']);
//我的-数字人民币
Route::get('my/wallet/list', [CommonController::class,'walletList']);
//订单详情
Route::get('order/info', [OrderController::class,'getOrderInfo']);
//订单取消
Route::post('order/cancel', [OrderController::class,'updateOrderCancel']);
//预计扣除
Route::get('expected/deduction', [OrderController::class,'expectedDeduction']);
//活动取消
Route::post('activity/cancel', [ActivityController::class,'activityApplicationCancel']);
//紧急联系人添加或修改
Route::post('add/emergency/contact', [UserUrgentController::class,'addEmergencyContact']);
//紧急联系人查询
Route::get('get/emergency/contact', [UserUrgentController::class,'getEmergencyContact']);
